/**
 * Created by zhangwx on 2015/12/4.
 */


/**
 * 用户组分析
 */
function getUserRouteInfo() {

    param.setParam();
    window.frames['map'].layerLoad();
    $.ajax({
        type : "POST",
        url : "../../mapAnalysis/UserGroupHeatMap",
        data : {
            "param" : JSON.stringify(param)
        },
        dataType : "json",
        success : function(data) {
            window.frames['map'].initMapData();
            if(!data["data"]){
                window.frames['map'].noMapdata();
            }else{

                window.frames['map'].initData(data,{
                    type:"groupMap",
                    data:"data",
                    lonb:"lng",
                    latb:"lat"
                    //  displayField: [{label:"上行流量",value:"flow_up"},{label:"下行流量",value:"flow_down"}]

                });
                window.frames['map'].closeLayer();
            }

        }
    });

   /* $.ajax({
        type : "POST",
        url : "../../mapAnalysis/UserGroupRoute",
        data : {
            "param" : JSON.stringify(param)
        },
        dataType : "json",
        success : function(data) {
            window.frames['map'].initData(data,{
                type:"group",
                data:"data",
                lonb:"lonb",
                latb:"latb"
             //displayField: [{label:"上行流量",value:"flow_up"},{label:"下行流量",value:"flow_down"}]

            });
            window.frames['map'].initData(data,{
                type:"group",
                data:"data",
                lonb:"lonb",
                latb:"latb",
                displayField: [{label:"上行流量",value:"flow_up"},{label:"下行流量",value:"flow_down"}]

            });
        }
    });*/
}

